import orderAction from '../../../enum/order-action'
import orderStatus from '../../../enum/order-status'
import { getDataSet } from '../../../utils/utils'

const behavior = Behavior({
  behaviors: [],
  properties: {
    order: Object,
  },
  data: {
    orderStatus: orderStatus,
    orderAction: orderAction,
  },
  methods: {
    handleUpdateOrderStatus: function (event) {
      const action = getDataSet(event, 'action')
      console.log(action)
      this.triggerEvent('update-status', { action })
    },
  },
})
export default behavior
